﻿@model IEnumerable<PortalCurriculo.MvcWebUI.Models.PessoaModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            PessoaFisica
        </th>
        <th>
            PessoaJuridica
        </th>
        <th>
            Email
        </th>
        <th>
            Site
        </th>
        <th>
            DataCadastro
        </th>
        <th>
            ReceberEmailSite
        </th>
        <th>
            ReceberEmailParceiro
        </th>
        <th>
            ReceberSMS
        </th>
        <th>
            Ativo
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PessoaFisica.NomeCompleto)
        </td>
        <td>
            @*@Html.DisplayFor(modelItem => item.PessoaJuridica.RazaoSocial)*@
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Site)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DataCadastro)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReceberEmailSite)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReceberEmailParceiro)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReceberSMS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Ativo)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
